package ee.tallink.beans;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import ee.tallink.common.model.AccountModel;

public class Accounts implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 3162763908881698673L;

	public List <AccountModel> getList () {
		List<AccountModel> list = new ArrayList<AccountModel>();
		List <AccountModel> items = AccountModel.find("order by id desc");
		list.addAll(items);
		return list;
	}
	public List <AccountModel> getAccountsList () {
		List<AccountModel> accountList = new ArrayList<AccountModel>();
		accountList.add(null);
		List <AccountModel> items = AccountModel.find("order by id");
		accountList.addAll(items);
		return accountList;
	}

}
